home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI1064.ASC < prev    next >
Text File  |  1992-08-12  |  4KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                               NUMBER  :  1064
  9.   VERSION  :  3.5 & up
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/2
  12.  
  13.     TITLE  :  Computing Weighted Averages in Reports
  14.  
  15.  
  16.  
  17.  
  18.   Intended Audience:
  19.   This Technical Information sheet is intended for all levels of
  20.   Paradox users who need to know how to compute weighted averages.
  21.  
  22.   Prerequisites:
  23.   The reader of this document should be able to create tables,
  24.   forms, and reports in Paradox.  In addition, the user should have
  25.   a basic understanding of how to use calculated fields in reports.
  26.  
  27.   Purpose:
  28.   The purpose of this sheet is to familiarize the user with the
  29.   weighted averages equation and how to incorporate it in a report.
  30.   The basic idea of a Weighted Average comes from the Center of
  31.   Mass problem in Physics.  The Center of Mass equation determines
  32.   where along a particular line (e.g., the X axis) the Center of
  33.   Mass is located.  The location of the Center of Mass corresponds
  34.   to the Weighted Average of the system.
  35.  
  36.   Here is an example of how to compute a Weighted Average for a
  37.   group of test scores.  Let us say there are two scores that
  38.   appear for a particular test.  Each score varies in occurrence;
  39.   for example, test score #1 will occur 3 times, and test score #2
  40.   will occur 2 times.
  41.  
  42.      1.  Determine how many times each test score occurs, e.g.;
  43.          M1=3, M2=2 etc.
  44.  
  45.      2.  Enter the value of each test score, e.g.;
  46.          X1=2, X2=9 etc.
  47.  
  48.      3.  Use the following equation to compute the Weighted Average
  49.          of the test scores:
  50.  
  51.             Xc = ((M1*X1) + (M2*X2))\(M1+M2)
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                               NUMBER  :  1064
  75.   VERSION  :  3.5 & up
  76.        OS  :  DOS
  77.      DATE  :  August 12, 1992                          PAGE  :  2/2
  78.  
  79.     TITLE  :  Computing Weighted Averages in Reports
  80.  
  81.  
  82.  
  83.  
  84.   Xc can be regarded as the Weighted Average of X1 and X2.  The
  85.   Weighted Average equation can be used for any number of values.
  86.   For example, here is an equation that computes the Weighted
  87.   Average for four test scores:
  88.  
  89.        Xc = ((M1*X1) + (M2*X2) + (M3*X3) + (M4*X4))\(M1+M2+M3+M4)
  90.  
  91.   Each value's quantity provides the "weight" when the average is
  92.   calculated.
  93.  
  94.   The following is an example of how to use Weighted Averages in a
  95.   report.
  96.  
  97.   From the main menu choose Create and type in Weight and press
  98.   <ENTER> (or the equivalent).  The first field should be
  99.   designated "X" of type N (numeric).  The second field should be
  100.   designated "Quantity" of type N (numeric).  Press <F2> to create
  101.   the table "Weight".
  102.  
  103.   Choose Modify | DataEntry to enter the values; 1,2,3,4, and 5 in
  104.   the "X" field and 2,3,4,5, and 6 in the "Quantity" field.  Press
  105.   <F2> upon completion of data entry.
  106.  
  107.   From the main menu choose Report | Change and type in Weight.
  108.   Select the table's Standard Report and press <ENTER>.  Press
  109.   <ENTER> when the Report's description appears on screen.  The
  110.   message; "Changing Report R for Weight table" will be displayed
  111.   at the top left of the screen.  Press <F10> for the Report
  112.   Generator Menu.  Choose Field | Place | Calculated and place the
  113.   following field:
  114.  
  115.        Round((Sum([X]*[Quantity]))/(Sum([Quantity])),2)
  116.  
  117.   Press <F2> to save the report and return to the main menu.
  118.   Choose Report | Output; type in Weight and press <ENTER>.  Choose
  119.   Screen and look at where the calculated field was placed on the
  120.   report.  The calculated field will return the value "3.5".  The
  121.   above equation can calculate the Weighted Average for any group
  122.   of numeric values.
  123.  
  124.   DISCLAIMER: You have the right to use this technical information
  125.   subject to the terms of the No-Nonsense License Statement that
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Paradox                               NUMBER  :  1064
  141.   VERSION  :  3.5 & up
  142.        OS  :  DOS
  143.      DATE  :  August 12, 1992                          PAGE  :  3/3
  144.  
  145.     TITLE  :  Computing Weighted Averages in Reports
  146.  
  147.  
  148.  
  149.  
  150.   you received with the Borland product to which this information
  151.   pertains.
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.